package lab02.test05;

public class Cube {
    //属性：长、宽、高
    float length=1;
    float width=2;
    float height=3;


    //行为：求体积
    public float volume(){
        return length*width*height;
    }
    //main函数
    public static void main(String[] args) {
        Cube cube1=new Cube();
        System.out.println("立方体的体积是："+cube1.volume());
    }

}
